package de.tabuma.wsdl2xform;

/**
 * That class includes many information to handle with. If testEnvironment is true
 * the application in test mode. For example do one pay at pay pal on the &quot;sandbox&quot; plattform.
 * @author $Author: alefen $
 * @version $Revision: 1.4.4.1 $
 * @since $Date: 2010/01/13 10:23:55 $
 */
public class constants {

    public final static String version = "0.6";

    public final static boolean testEnvironment = true;

    public final static double vat = 19.0;
    public final static String projectLanguageBundle = "de/tabuma/wsdl2xform/languages";

    protected final static String payPalAuthentificationLiveURL = "https://api-3t.paypal.com/nvp";
    protected final static String payPalAuthentificationTestURL = "https://api-3t.sandbox.paypal.com/nvp";
    public final static String payPalAuthentificationURL = (testEnvironment ? payPalAuthentificationTestURL : payPalAuthentificationLiveURL);

    protected final static String payPalLiveURL = "";
    protected final static String payPalTestURL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
    public final static String payPalUrl = (testEnvironment ? payPalTestURL : payPalLiveURL);

    protected final static String payPalLiveUser = "";
    protected final static String payPalTestUser = "seller_1246907533_biz_api1.alfenory.de";
    public final static String payPalUser = (testEnvironment ? payPalTestUser : payPalLiveUser);

    protected final static String payPalLivePassword = "";
    protected final static String payPalTestPassword = "Y7FZCJ2BKN7DFPSJ";
    public final static String payPalPassword = (testEnvironment ? payPalTestPassword : payPalLivePassword);

    protected final static String payPalLiveSignature = "";
    protected final static String payPalTestSignature = "AFcWxV21C7fd0v3bYYYRCpSSRl31AYcB.KkqN1GRTtIDvVegyoVFJVtO";
    public final static String payPalSignature = (testEnvironment ? payPalTestSignature : payPalLiveSignature);

    protected final static String liveURL = "https://www.wsdl2xform.com";
    protected final static String testURL = "http://localhost:8081/";
    public final static String URL = (testEnvironment ? testURL : liveURL);

    protected final static String liveImageUrl = "https://www.wsdl2xform.com/grafiken/logo_version_1_0_web.png";
    protected final static String testImageUrl = "http://localhost:8080/grafiken/logo_version_1_0_web.png";
    public final static String imageUrl = (testEnvironment ? testImageUrl : liveImageUrl);

    public static String getValueFromProperties(String propertieFileName,String key) {
        return java.util.ResourceBundle.getBundle(propertieFileName).getString(key);
    }
}
